package com.example.child_protection.dto.request.add;

import com.example.child_protection.dto.base.BaseRequestDTO;
import com.example.child_protection.enums.CloseCaseTypeEnums;
import com.example.child_protection.enums.TurnTypeEnums;
import io.swagger.annotations.ApiParam;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 儿童档案信息添加请求DTO
 * @date 2018-11-1
 * @author Biz
 */
@Getter
@Setter
public class ChildArchivesTurnSaveRequestDTO extends BaseRequestDTO {
    /**
     * 档案编号
     *
     * @mbggenerated
     */
    @ApiParam(value = "档案编号",required = true)
    @NotNull
    private Long archivesId;

    /**
     * 转出标记
     *
     * @mbggenerated
     */
    @ApiParam(value = "转出标记" )
    @NotNull
    private TurnTypeEnums turnOutStates;

    /**
     * 转出日期
     *
     * @mbggenerated
     */
    @ApiParam(value = "转出日期" )
    @NotNull
    private Date turnOutTime;

    /**
     * 转出原因
     *
     * @mbggenerated
     */
    @ApiParam(value = "转出原因" )
    @NotNull
    private String turnOutInfo;

    /**
     * 结案标记
     *
     * @mbggenerated
     */
    @ApiParam(value = "结案标记" )
    @NotNull
    private CloseCaseTypeEnums closeCaseStates;

    /**
     * 结案日期
     *
     * @mbggenerated
     */
    @ApiParam(value = "结案日期" )
    @NotNull
    private Date closeCaseTime;

    /**
     * 结案医生id
     *
     * @mbggenerated
     */
    @ApiParam(value = "结案医生id" )
    @NotNull
    private Integer closeCaseDoctorId;

    /**
     * 结案原因
     *
     * @mbggenerated
     */
    @ApiParam(value = "结案原因" )
    @NotNull
    private String closeCaseInfo;

    /**
     * 结案医生
     *
     * @mbggenerated
     */
    @ApiParam(value = "结案医生" )
    @NotNull
    private String closeCaseDoctor;

    /**
     * 操作者编号
     */
    @ApiParam(value = "操作者编号",required = true)
    @NotNull
    private Long createPersonId;

    public void valid(){
        super.validate( this, new Class[0] );
    }
    public boolean isValidGid() {

        return false;
    }

}
